package com.wdb.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * rsa 配置
 *
 * @author: wendaobai@qq.com
 * @date: 2024/1/5 0005 15:41
 */
@Data
@Component
public class RsaProperties {
  public static String privateKey;

  @Value("${rsa.private_key}")
  public void setPrivateKey(String privateKey) {
    RsaProperties.privateKey = privateKey;
  }
}
